<?php
/**
 * Created by litong on Date: 2018/12/24 0024 上午 9:15
 */
class Site1{
  var $title;
  var $url;

  function getUrl(){
    echo $this->url;
  }
  function  getTitle(){
    echo $this->title;
  }
  function __construct($par1,$par2)
  {
    $this->title=$par1;
    $this->url=$par2;
  }

}
$xiaoi=new Site1("xiaoi","www.xiaoi.com");
echo "<br/>";
echo $xiaoi->getTitle();
echo "<br/>";
echo $xiaoi->getUrl();
?>